//引入项目中全部的全局组件
import pform from './publicForm.vue'
import pdlog from "@/components/publicDialog";
import plist from "@/components/publicList";
import pbtn from "@/components/addBtn";
import fbr from "@/components/formcpns/fbr";



const allGloablComponent = { pform,pdlog,plist,pbtn,fbr }

//引入element-plus提供全部图标组件
// import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//全局对象

//对外暴露插件对象
export default {
  //务必叫做install方法
  install(app) {
    //注册项目全部的全局组件
    Object.keys(allGloablComponent).forEach((key) => {
      //注册为全局组件
      app.component(key, allGloablComponent[key])
    })
    // //将element-plus提供图标注册为全局组件
    // for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    //   app.component(key, component)
    // }
  },
}